package com.authine.cloudpivot.ext.dto.model.settle;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "核销记录展示实体，对应结算单上面字段")
public class SettleWriteOffRecord {

    /**
     * 收款单号
     */
    @Schema(description = "结算单ID")
    private String id;
    /**
     * 红票对应的蓝票的号码
     */
    @Schema(description = "忽略")
    private String offset_id;
    /**
     * 付款组织名
     */
    @Schema(description = "购买方组织名称")
    private String purchase_organization_name;
    /**
     * 收款组织名
     */
    @Schema(description = "销售方组织名称")
    private String sale_organization_name;
    /**
     * 核销金额
     */
    @Schema(description = "核销金额")
    private BigDecimal total;
    /**
     * 发票号码
     */
    @Schema(description = "发票号码")
    private String invoice_number;
    /**
     * 是否发票全部红冲时生成
     */
    @Schema(description = "涉及红冲标识")
    private String haveRedInvoice;
    /**
     * 分配人
     */
    @Schema(description = "分配人")
    private String confirm_member_name;
    /**
     * 核销时间
     */
    @Schema(description = "核销时间")
    private Date confirm_time;
    /**
     * 是否代购
     */
    @Schema(description = "是否代购标识")
    private Boolean contract;

    /**
     * 代购收款类型
     */
    @Schema(description = "代购收款类型")
    private Boolean contract_payment_type;
}
